package com.jianz.campus_markets.domain.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author jianz
 * @since 2023-11-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Order对象", description="")
@TableName("sales_order")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id",type = IdType.INPUT)
    private String id;
    @TableField("productId")
    private Integer productId;

    @TableField("userId")
    private Integer userid;

    private Integer num;

    @TableField("totalPrice")
    private BigDecimal totalPrice;

    private String description;

    @TableField("image")
    private String image;

    @ApiModelProperty(value = "0是待支付，1是已支付，2是取消或15分钟过期")
    private Integer status;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableField("solderId")
    private Integer solderId;

    @TableField("solderName")
    private String solderName;

    @TableField("solderAvatar")
    private String solderAvatar;

    @TableField("title")
    private String title;



}
